package mhl.service;

import mhl.DAO.menuDao;
import mhl.domain.menu;

import java.util.List;

public class menuService {
    private menuDao menudao = new menuDao();
    public List<menu> listMenu(){
        return menudao.getMany("select * from menu",menu.class);
    }

    public Object getPricebyId(int id){
        return menudao.getObject("select price from menu where id = ?", id);
    }

}
